package com.educatioin.manage.web.studytours.repository;

import com.educatioin.manage.web.studytours.po.StudyAbroadProductPo;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

/**
 * Created by Zhangyin on 2018/5/5.
 */
@RepositoryRestResource(collectionResourceRel = "studyAbroadProductRepository", path = "studyAbroadProductRep")
public interface StudyAbroadProductRepository extends JpaSpecificationExecutor<StudyAbroadProductPo>, PagingAndSortingRepository<StudyAbroadProductPo, Long> {

    StudyAbroadProductPo findByCode(String code);
}
